
#include <iostream>
#include <cstring>

using namespace std;
// Static variable is not inclded in object
// This variable belonged to class
class A{
public:
	int m_i;
	static int m_si;
};

int A::m_si = 0; // The static variable must be defined in globle


int main(void){
	A a, b;

	cout << "size of a:" << sizeof(a) << endl;
	cout << "size of b:" << sizeof(b) << endl;

	A::m_si = 100;//This is belonged to class

	a.m_si = 8888;
	cout << "b.m_si=" << b.m_si << endl;//Object can visit the static variable

	return 0;
}
